package com.gec.zhs.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 代码生成器的字段信息
 * @TableName buildertablecolumn
 */
@TableName(value ="buildertablecolumn")
@Data
public class Buildertablecolumn implements Serializable {
    /**
     * 编号
     */
    @TableId
    private String id;

    /**
     * 归属表编号
     */
    private String tableid;

    /**
     * 表名称
     */
    private String tablename;

    /**
     * 列名称
     */
    private String columnname;

    /**
     * 列描述
     */
    private String comment;

    /**
     * 列类型
     */
    private String columntype;

    /**
     * 实体类型
     */
    private String entitytype;

    /**
     * 实体名称
     */
    private String entityname;

    /**
     * 是否主键
     */
    private Integer iskey;

    /**
     * 是否自增
     */
    private Integer isincrement;

    /**
     * 是否必填
     */
    private Integer isrequired;

    /**
     * 是否为插入字段
     */
    private Integer isinsert;

    /**
     * 是否编辑字段
     */
    private Integer isedit;

    /**
     * 是否列表字段
     */
    private Integer islist;

    /**
     * 是否查询字段
     */
    private Integer isquery;

    /**
     * 查询方式（等于、不等于、大于、小于、范围）
     */
    private String querytype;

    /**
     * 显示类型（文本框、文本域、下拉框、复选框、单选框、日期控件）
     */
    private String htmltype;

    /**
     * 数据源（用于下拉框、复选框等取值）
     */
    private String datasource;

    /**
     * 编辑类型（文本框、文本域、下拉框、复选框、单选框、日期控件）
     */
    private String edittype;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 创建时间
     */
    private Date createtime;

    /**
     * 创建人ID
     */
    private String createuserid;

    /**
     * 修改时间
     */
    private Date updatetime;

    /**
     * 修改人ID
     */
    private String updateuserid;

    /**
     * 修改时的行位置
     */
    private Integer editrow;

    /**
     * 修改时的列位置
     */
    private Integer editcol;

    /**
     * 修改人姓名
     */
    private String updateusername;

    /**
     * 创建人姓名
     */
    private String createusername;

    /**
     * 最大长度
     */
    private Integer maxlength;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Buildertablecolumn other = (Buildertablecolumn) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTableid() == null ? other.getTableid() == null : this.getTableid().equals(other.getTableid()))
            && (this.getTablename() == null ? other.getTablename() == null : this.getTablename().equals(other.getTablename()))
            && (this.getColumnname() == null ? other.getColumnname() == null : this.getColumnname().equals(other.getColumnname()))
            && (this.getComment() == null ? other.getComment() == null : this.getComment().equals(other.getComment()))
            && (this.getColumntype() == null ? other.getColumntype() == null : this.getColumntype().equals(other.getColumntype()))
            && (this.getEntitytype() == null ? other.getEntitytype() == null : this.getEntitytype().equals(other.getEntitytype()))
            && (this.getEntityname() == null ? other.getEntityname() == null : this.getEntityname().equals(other.getEntityname()))
            && (this.getIskey() == null ? other.getIskey() == null : this.getIskey().equals(other.getIskey()))
            && (this.getIsincrement() == null ? other.getIsincrement() == null : this.getIsincrement().equals(other.getIsincrement()))
            && (this.getIsrequired() == null ? other.getIsrequired() == null : this.getIsrequired().equals(other.getIsrequired()))
            && (this.getIsinsert() == null ? other.getIsinsert() == null : this.getIsinsert().equals(other.getIsinsert()))
            && (this.getIsedit() == null ? other.getIsedit() == null : this.getIsedit().equals(other.getIsedit()))
            && (this.getIslist() == null ? other.getIslist() == null : this.getIslist().equals(other.getIslist()))
            && (this.getIsquery() == null ? other.getIsquery() == null : this.getIsquery().equals(other.getIsquery()))
            && (this.getQuerytype() == null ? other.getQuerytype() == null : this.getQuerytype().equals(other.getQuerytype()))
            && (this.getHtmltype() == null ? other.getHtmltype() == null : this.getHtmltype().equals(other.getHtmltype()))
            && (this.getDatasource() == null ? other.getDatasource() == null : this.getDatasource().equals(other.getDatasource()))
            && (this.getEdittype() == null ? other.getEdittype() == null : this.getEdittype().equals(other.getEdittype()))
            && (this.getSort() == null ? other.getSort() == null : this.getSort().equals(other.getSort()))
            && (this.getCreatetime() == null ? other.getCreatetime() == null : this.getCreatetime().equals(other.getCreatetime()))
            && (this.getCreateuserid() == null ? other.getCreateuserid() == null : this.getCreateuserid().equals(other.getCreateuserid()))
            && (this.getUpdatetime() == null ? other.getUpdatetime() == null : this.getUpdatetime().equals(other.getUpdatetime()))
            && (this.getUpdateuserid() == null ? other.getUpdateuserid() == null : this.getUpdateuserid().equals(other.getUpdateuserid()))
            && (this.getEditrow() == null ? other.getEditrow() == null : this.getEditrow().equals(other.getEditrow()))
            && (this.getEditcol() == null ? other.getEditcol() == null : this.getEditcol().equals(other.getEditcol()))
            && (this.getUpdateusername() == null ? other.getUpdateusername() == null : this.getUpdateusername().equals(other.getUpdateusername()))
            && (this.getCreateusername() == null ? other.getCreateusername() == null : this.getCreateusername().equals(other.getCreateusername()))
            && (this.getMaxlength() == null ? other.getMaxlength() == null : this.getMaxlength().equals(other.getMaxlength()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTableid() == null) ? 0 : getTableid().hashCode());
        result = prime * result + ((getTablename() == null) ? 0 : getTablename().hashCode());
        result = prime * result + ((getColumnname() == null) ? 0 : getColumnname().hashCode());
        result = prime * result + ((getComment() == null) ? 0 : getComment().hashCode());
        result = prime * result + ((getColumntype() == null) ? 0 : getColumntype().hashCode());
        result = prime * result + ((getEntitytype() == null) ? 0 : getEntitytype().hashCode());
        result = prime * result + ((getEntityname() == null) ? 0 : getEntityname().hashCode());
        result = prime * result + ((getIskey() == null) ? 0 : getIskey().hashCode());
        result = prime * result + ((getIsincrement() == null) ? 0 : getIsincrement().hashCode());
        result = prime * result + ((getIsrequired() == null) ? 0 : getIsrequired().hashCode());
        result = prime * result + ((getIsinsert() == null) ? 0 : getIsinsert().hashCode());
        result = prime * result + ((getIsedit() == null) ? 0 : getIsedit().hashCode());
        result = prime * result + ((getIslist() == null) ? 0 : getIslist().hashCode());
        result = prime * result + ((getIsquery() == null) ? 0 : getIsquery().hashCode());
        result = prime * result + ((getQuerytype() == null) ? 0 : getQuerytype().hashCode());
        result = prime * result + ((getHtmltype() == null) ? 0 : getHtmltype().hashCode());
        result = prime * result + ((getDatasource() == null) ? 0 : getDatasource().hashCode());
        result = prime * result + ((getEdittype() == null) ? 0 : getEdittype().hashCode());
        result = prime * result + ((getSort() == null) ? 0 : getSort().hashCode());
        result = prime * result + ((getCreatetime() == null) ? 0 : getCreatetime().hashCode());
        result = prime * result + ((getCreateuserid() == null) ? 0 : getCreateuserid().hashCode());
        result = prime * result + ((getUpdatetime() == null) ? 0 : getUpdatetime().hashCode());
        result = prime * result + ((getUpdateuserid() == null) ? 0 : getUpdateuserid().hashCode());
        result = prime * result + ((getEditrow() == null) ? 0 : getEditrow().hashCode());
        result = prime * result + ((getEditcol() == null) ? 0 : getEditcol().hashCode());
        result = prime * result + ((getUpdateusername() == null) ? 0 : getUpdateusername().hashCode());
        result = prime * result + ((getCreateusername() == null) ? 0 : getCreateusername().hashCode());
        result = prime * result + ((getMaxlength() == null) ? 0 : getMaxlength().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", tableid=").append(tableid);
        sb.append(", tablename=").append(tablename);
        sb.append(", columnname=").append(columnname);
        sb.append(", comment=").append(comment);
        sb.append(", columntype=").append(columntype);
        sb.append(", entitytype=").append(entitytype);
        sb.append(", entityname=").append(entityname);
        sb.append(", iskey=").append(iskey);
        sb.append(", isincrement=").append(isincrement);
        sb.append(", isrequired=").append(isrequired);
        sb.append(", isinsert=").append(isinsert);
        sb.append(", isedit=").append(isedit);
        sb.append(", islist=").append(islist);
        sb.append(", isquery=").append(isquery);
        sb.append(", querytype=").append(querytype);
        sb.append(", htmltype=").append(htmltype);
        sb.append(", datasource=").append(datasource);
        sb.append(", edittype=").append(edittype);
        sb.append(", sort=").append(sort);
        sb.append(", createtime=").append(createtime);
        sb.append(", createuserid=").append(createuserid);
        sb.append(", updatetime=").append(updatetime);
        sb.append(", updateuserid=").append(updateuserid);
        sb.append(", editrow=").append(editrow);
        sb.append(", editcol=").append(editcol);
        sb.append(", updateusername=").append(updateusername);
        sb.append(", createusername=").append(createusername);
        sb.append(", maxlength=").append(maxlength);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}